package com.bwie.auth.feign;

import com.bwie.common.domain.po.UserPo;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("bwie-user")
public interface AuthFeign {

    /**
     * 登录
     * @param userName
     * @return
     */
    @GetMapping("user/login")
    public Result<UserPo> login(@RequestParam String userName);
}
